package edu.bit.water.dao;

import edu.bit.water.entity.CleanProductSub1;
import edu.bit.water.entity.MetaCleanProductSub1;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TableCleanProductDao {

    List<MetaCleanProductSub1> getSub1MetaData(String standardNumber);

    List<MetaCleanProductSub1> getSub2MetaData(String standardNumber);

    List<MetaCleanProductSub1> getSub3MetaData(String standardNumber);

    List<MetaCleanProductSub1> getSub4MetaData(String standardNumber);

    List<MetaCleanProductSub1> getSub5MetaData(String standardNumber);

    void insertSub1(String indicator, int lastId);

    void insertSub2(String indicator, int lastId);

    void insertSub3(String indicator, int lastId);

    void insertSub4(String indicator, int lastId);

    void insertSub5(String indicator, int lastId);

    List<CleanProductSub1> sub1Select(int lastId);

    List<CleanProductSub1> sub2Select(int lastId);

    List<CleanProductSub1> sub3Select(int lastId);

    List<CleanProductSub1> sub4Select(int lastId);

    List<CleanProductSub1> sub5Select(int lastId);

    void updateSub1(int id, String content, String rank);

    void updateSub2(int id, String content, String rank);

    void updateSub3(int id, String content, String rank);

    void updateSub4(int id, String content, String rank);

    void updateSub5(int id, String content, String rank);

    void stateUpdate(int id, String stdState);

    void updateSub1IncludeInput(int id, String content, String rank, double input1, double input2);

    void updateSub2IncludeInput(int id, String content, String rank, double input1, double input2);

    void updateSub3IncludeInput(int id, String content, String rank, double input1, double input2);

    void updateSub4IncludeInput(int id, String content, String rank, double input1, double input2);

    void updateSub5IncludeInput(int id, String content, String rank, double input1, double input2);

}
